package vetor;

public class NoLista<T> { 
    private NoLista<T> prev;
    private NoLista<T> next;
    private T element;
    public NoLista(NoLista<T> newPrev, NoLista<T> newNext, T elem) {
        prev = newPrev;
        next = newNext;
        element = elem;
    }         
    public T element() {
         return element;
    }        
    public NoLista<T> getNext() {
        return next;
    }
    public NoLista<T> getPrev() {
        return prev;
    }
    public void setNext(NoLista<T> newNext) {
        next = newNext;
    }
    public void setPrev(NoLista<T> newPrev) {
        prev = newPrev;
    }
    public void setElement(T newElement) {
        element = newElement;
    }
}
